<script setup>
import MyOrders from "@/views/MyOrders/index.vue"

</script>

<template>
<div class="container">
  <ul>
    <li class="title">用户中心</li>
    <li class="infor"><img src="@/assets/logo.svg" alt="" style="width: 30px;height: 30px"/>  <span>名称</span></li>
    <li class="address"><RouterLink to="/addressBook">
        <span>地址管理</span> <span>> </span>
    </RouterLink>
    </li>
    <li class="order"><RouterLink to="/myOrders"><span>历史订单</span> <span>> </span></RouterLink></li>
  </ul>
  <div>
    最近订单
  </div>
  <MyOrders/>
</div>

</template>

<style scoped lang="scss">
.container {
  max-width: 600px;
  min-width: 200px;
  margin: 0 auto;
  border: 15px solid #faf7f7;
  background: #faf7f7;
  border-radius: 10px;
}
ul{
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
li{
  background:#ffffff ;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #8a8585;
  text-align: center;

  a{
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #000;
    text-decoration: none;/*无下划线*/
    text-align: center; /*文字居中*/
    line-height: 1;
    span{
      font-size: 0.25rem;
      margin:  0.05rem;
      flex: 1;
    }
    &:hover{
      color:$xtxColor;
    }
  }
}
.infor{
  display: flex;
  justify-content: space-between;
}
title{
  background: #faf7f7;
  text-align: center;
  i{
    flex: 1;
  }
}
</style>